from po_126mail.Page.Page1 import Page1
from selenium.webdriver.common.by import By

class Page2(Page1):
    writer_loc = (By.XPATH,'//*[@id="_mail_component_98_98"]')
    def writer(self):
        self.click(self.writer_loc)

    person_loc = (By.CLASS_NAME,'nui-editableAddr-ipt')
    def person(self):
        self.send_keys(self.person_loc,'3080172040@qq.com')

    # 1756899620502_subjectInput
    title_loc = (By.XPATH,'//input[starts-with(@id,"175")]')
    def title(self):
        self.send_keys(self.title_loc,'测试aaa')

    kj2_loc = (By.XPATH,'//*[@id="_mail_editor_0_373"]/div[1]/div[2]/div/iframe')
    def kj2(self):
        self.iframe(self.kj2_loc)

    message_loc = (By.XPATH,'/html/body')
    def message(self):
        self.send_keys(self.message_loc,'泥嚎')

    send_loc = (By.CLASS_NAME,'nui-btn-text')
    def send(self):
        self.click(self.send_loc)